﻿using System.ServiceModel;

namespace WmsRunStart.Factory
{
    public class WmsServiceFactory
    {
        public static IServiceChannel GetServiceClient()
        {
            return CreateServiceChannel();
        }

        private static IServiceChannel CreateServiceChannel()
        {
            var factory = new ChannelFactory<IServiceChannel>("BasicHttpBinding_IService");
            IServiceChannel proxy = factory.CreateChannel();
            return proxy;
        }
    }
}